<%@ page contentType="text/html;charset=UTF-8" %>

<span class="errors">
  <ul>
    <g:each in="${flash.messages}" var="message">
      <li>
        <g:message id="messages" code="${message}"/>
      </li>
    </g:each>
    <g:each in="${request.messages}" var="message">
      <li>
        <g:message id="messages" code="${message}"/>
      </li>
    </g:each>
  </ul>
</span>